
#ifndef wu_SHAPEMOVIEMANAGER_H
#define wu_SHAPEMOVIEMANAGER_H

#pragma once
#include "wuShapeMovie.h"
#include "wuBaseManager.h"

class wuShapeMovieManager : public wuBaseManager
{
    public:
        wuShapeMovieManager();
        ~wuShapeMovieManager();

		void setup(string _filename, int _vw, int _vh);
		void update();
		void setPosition(ofPoint _pos);
//		void drag(int _x,int _y);
//		void dragOff();
        bool action(ofImage *currImg, ofImage *bgImg, int action, int x_offset);
		void clear();

		bool capture(ofImage *currImg, ofImage *bgImg, int x_offset);
		void addBitxo(ofImage *_skin, ofRectangle rect, vector <ofPoint> * _pts);
        void draw(bool pinta_bg=false, int offX=0);
        void drawSelected(bool pinta_bg=false, int offX=0);
        void setLoopState(bool _loop);
		// skins
        wuShapeMovie movie;
        ofPoint moviePos;
        bool bLoopState;
};
#endif

